import request from '@/utils/request'
import { baseUrl } from '@/config/env';

//获取绑定账号组
export const group = () => {
  return request({
    url: baseUrl+'/rest/userPlatformAccount/group',
    method: 'get',
  })
}

//获取平台绑定账号列表
export const bindList = (platfromCode) => {
  return request({
    url: baseUrl+'/rest/userPlatformAccount/accountList',
    method: 'get',
    params:{
      platfromCode
    }
  })
}

//删除账号绑定
export const remove = (id) => {
  return request({
    url: `${baseUrl}/rest/userPlatformAccount/removeAuth/${id}`,
    method: 'get'
  })
}